Skip to content

Wrappers: verify the published React and Vue declarations with the consumer floor compiler - #35497

Merged
EugeniyKiyashko merged 2 commits into
DevExpress:mainfrom
EugeniyKiyashko:chore/wrappers-dts-floor-check
Oct 7, 2026
Merged

EugeniyKiyashko merged 2 commits into
DevExpress:mainfrom
EugeniyKiyashko:chore/wrappers-dts-floor-check

Conversation

@EugeniyKiyashko

Copy link
Copy Markdown
Contributor

No description provided.

@EugeniyKiyashko EugeniyKiyashko self-assigned this Oct 6, 2026
`src/core/template` resolved only through the package tsconfig baseUrl and was
copied verbatim into the published cjs/core/configuration/react/templates.d.ts,
where a consumer with skipLibCheck: false gets TS2307. The import is type-only,
the emitted JS does not change.
…nsumer floor compiler

A new verify:dts target runs the check-declarations executor over npm/cjs/**/*.d.ts
with typescript-min (4.9.5), baseUrl pointing at npm/ so that workspace-only
specifiers (src/..., devextreme/artifacts/npm/...) cannot resolve, and
devextreme/* mapped to the built devextreme package. Wrappers Tests runs it after
pack for react and vue. typescript-min becomes a devDependency of both wrappers so
the executor resolves the floor compiler from the package.
@EugeniyKiyashko
EugeniyKiyashko force-pushed the chore/wrappers-dts-floor-check branch from 4bc47da to 4113b82 Compare October 6, 2026 09:20
@EugeniyKiyashko
EugeniyKiyashko marked this pull request as ready for review October 6, 2026 11:31
@EugeniyKiyashko
EugeniyKiyashko requested a review from a team as a code owner October 6, 2026 11:31
Copilot AI balanced review requested due to automatic review settings October 6, 2026 11:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The declaration checks, compiler floor, CI integration, and import correction are consistent and complete.

Review effort: Balanced
Findings: None

What changed in this PR

Adds TypeScript 4.9 compatibility checks for published React and Vue declarations.

Changes:

  • Adds consumer-floor compiler dependencies and Nx verification targets.
  • Runs declaration verification in wrapper CI.
  • Fixes a React declaration import path.
File Description
pnpm-lock.yaml Locks TypeScript 4.9.5 aliases.
packages/​devextreme-vue/​project.json Adds Vue declaration verification.
packages/​devextreme-vue/​package.json Adds the minimum TypeScript compiler.
packages/​devextreme-react/​src/​core/​configuration/​react/​templates.ts Uses a publish-safe relative import.
packages/​devextreme-react/​project.json Adds React declaration verification.
packages/​devextreme-react/​package.json Adds the minimum TypeScript compiler.
.github/​workflows/​wrapper_tests.yml Runs wrapper declaration checks in CI.
Files not reviewed (1)
  • pnpm-lock.yaml: Generated file

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@EugeniyKiyashko
EugeniyKiyashko added this pull request to the merge queue Oct 7, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 7, 2026
@EugeniyKiyashko
EugeniyKiyashko added this pull request to the merge queue Oct 7, 2026
Merged via the queue into DevExpress:main with commit 37ac010 Oct 7, 2026
149 checks passed
@EugeniyKiyashko
EugeniyKiyashko deleted the chore/wrappers-dts-floor-check branch October 7, 2026 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants